import axios from '@/Api/axiosInterceptor.ts';
import { headerConfig } from './HeaderConfig';
export const getCameraToken = () => {
  return axios.get("http://localhost:8080/api/camera-datas/getToken", headerConfig)
    .then((response) => {
      localStorage.setItem("accessToken", response.data.access_token);
    })
    .catch((error) => {
      console.log(error);
    });
};